package com.gw.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// RestController可以支持ajax的请求
@RestController
public class CommonController {
    @RequestMapping("/hello")
    public String doHello() {
        return "Hello World! every body 你好";
    }
}